package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysSign;
import com.jk.smartelderlycare.dto.SysSlider;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/19 17:06
 * @Version v1.0
 */
public interface SysSliderServiceApi {
    /** 
     * @description: 轮播图后端分页查询
     * @param: [sysSign, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysSlider>
     * @author hhk
     * @date: 2024/11/19 17:10
     */ 
    @PostMapping(value = "/sysSlider/findSysSliderPaginationList")
    public PagedResponse<SysSlider> findSysSliderPaginationList(@RequestBody SysSlider sysSlider, @RequestParam(value = "pageNum")Integer pageNum ,@RequestParam(value = "pageSize") Integer pageSize);
    /**
     * @description: 新增轮播图
     * @param: [sysSlider]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 17:10
     */
    @PostMapping(value = "/sysSlider/addSlider")
    public void addSlider(@RequestBody SysSlider sysSlider);
    /**
     * @description: 根据id删除一条数据
     * @param: [sliderId]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 17:11
     */
    @DeleteMapping(value = "/sysSlider/deleteSysSliderById")
    public void deleteSysSliderById(@RequestParam Long sliderId);
    /**
     * @description: 根据id回显一条数据
     * @param: [sliderId]
     * @return: com.jk.smartelderlycare.dto.SysSlider
     * @author hhk
     * @date: 2024/11/19 17:12
     */
    @GetMapping(value = "/sysSlider/findSysSliderById")
    public SysSlider findSysSliderById(@RequestParam Long sliderId);
    /**
     * @description: 修改轮播图
     * @param: [sysSlider]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 17:13
     */
    @PutMapping(value = "/sysSlider/updateSysSlider")
    public void updateSysSlider(@RequestBody SysSlider sysSlider);
    /**
     * @description: 状态修改
     * @param: [sysSlider]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 17:15
     */
    @PutMapping(value = "/sysSlider/updataStutas")
    public void updataStutas(@RequestBody SysSlider sysSlider);
    /**
     * @description: 批量删除
     * @param: [sliderId]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 19:21
     */
    @DeleteMapping(value = "/sysSlider/deleteSysSliderByIds")
    public void deleteSysSliderByIds(@RequestParam List<Long> ids);
    
}
